package com.iotproject.forumservice.service;

import com.iotproject.forumservice.entity.ForumQuestion;
import com.iotproject.forumservice.entity.vo.QuestionVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 论坛问题 服务类
 * </p>
 *
 * @author testjava
 * @since 2023-04-09
 */
public interface ForumQuestionService extends IService<ForumQuestion> {

    public Map<String, Object> getAllListByPage(Integer page, Integer size);
    public QuestionVo getQuestionById(String questionId);
    public Map<String, String> getUserInfo(String userId);
    public void increaseCommentCount(String questionId);
    public void increaseLikeCount(String questionId);
    public void decreaseLikeOperator(String questionId);
    public List<ForumQuestion> relatedQuestion(String questionId, String tags);
    public void updateQuestion(String id, String title, String description, String tag);
    public List<ForumQuestion> hotTopic(String condition);
    public Map<String, Object> questionListByKeyWords(String keyWords, Integer page, Integer size);
    public Map<String, Object> questionListByUserId(String userId, Integer page, Integer size);
}
